diff options
| author | Fuwn <[email protected]> | 2024-04-19 21:31:41 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-04-19 21:31:41 -0700 |
| commit | 15bf000f557e9eb9df17897b032542d3d005a80a (patch) | |
| tree | 6c5701934468c17d3bebff157b9e4f8a7acbd21c /src/routes/user/[user] | |
| parent | fix(badges): hide shadow hidden badges (diff) | |
| download | due.moe-15bf000f557e9eb9df17897b032542d3d005a80a.tar.xz due.moe-15bf000f557e9eb9df17897b032542d3d005a80a.zip | |
feat(badges): shadow hidden notice
Diffstat (limited to 'src/routes/user/[user]')
| -rw-r--r-- | src/routes/user/[user]/badges/+page.svelte | 35 |
1 files changed, 25 insertions, 10 deletions
diff --git a/src/routes/user/[user]/badges/+page.svelte b/src/routes/user/[user]/badges/+page.svelte index adf8651a..c7941156 100644 --- a/src/routes/user/[user]/badges/+page.svelte +++ b/src/routes/user/[user]/badges/+page.svelte @@ -539,15 +539,30 @@ {/if} {#if isOwner} - <div class="card"> - <b>Notice:</b> AniList has begun purging outbound links which contain AI-generated - material, this includes Badge Wall. If you have collected badges with AI-generated - elements, kindly use the hide feature to hide these badges from the public, while - allowing them to stay visible to you as the account holder. - <p /> - Failure to comply with this request at your earliest convenience will result in the - hiding of all badges from your Badge Wall. - </div> + {@const shadowHidden = + ungroupedBadges.filter((badge) => badge.shadow_hidden).length > 0} + + {#if shadowHidden} + <div class="card"> + <b>Notice:</b> The Badge Wall overseer has detected badges containing + AI-generated material, and your Badge Wall has been shadow hidden. + <p /> + Please use "Un-shadow Hide Badges" button to unhide your badges, from where you will + be required to use the hide feature to hide these badges from the public, while allowing + them to stay visible to you as the account holder. + </div> + {:else} + <div class="card"> + <b>Notice:</b> AniList has begun purging outbound links which contain + AI-generated material, this includes Badge Wall. If you have collected badges + with AI-generated elements, kindly use the hide feature to hide these badges + from the public, while allowing them to stay visible to you as the account + holder. + <p /> + Failure to comply with this request at your earliest convenience will result in the + hiding of all badges from your Badge Wall. + </div> + {/if} <p /> @@ -594,7 +609,7 @@ <!-- <!-- <span style="margin: 0 0.625rem;">•</span> --> <!-- <button on:click={() => exportBadges(groupedBadges)}>Export Badges</button> --> - {#if ungroupedBadges.filter((badge) => badge.shadow_hidden).length > 0} + {#if shadowHidden} <span style="margin: 0 0.625rem;">•</span> <button on:click={setShadowHide}>Un-shadow Hide Badges</button> {/if} |